<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<meta charset="UTF-8">
<!-- 移动端兼容禁止缩放 -->
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<!-- 清除缓存标签 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
<head>
    <meta charset="UTF-8">
    <title>访问不允许</title>
    <style type="text/css">
        .Contain{
            display:flex;
            justify-content:center;
            align-items:center;
            flex-direction:column;
        }
        .red{ color:#FF3B3B; }
        .blue{ color:#0099ff; }
    </style>
    <script th:src="@{/js/clipboard.min.js}" type="text/javascript" charset="UTF-8"></script>
</head>
<body>
    <div class="Contain">
        <h2 style="margin-top:70px;">访问的页面不存在</h2>
        <!--<h4 style="margin-top:0px; color:#999; margin:0px auto; padding:0px;">访问无效</h4>-->
        <!--<h2 class="btn" th:text="${ServerIP+'/huafei'}" style="text-decoration:underline;"></h2>
        <h3 style="margin-top:0px;">请点击复制以上链接到<span class="red">微信</span>里打开!</h3>-->
    </div>
    <script th:inline="javascript">
        var ServerIP=[(${ServerIP!=null?'"'+ServerIP+'"':'"'+'"'})];
        var clipboard = new ClipboardJS('.btn', {
            text: function () {
                return ServerIP+"/huafei";
            },
        });
        clipboard.on('success', function (e) {
            alert("已复制,请前往微信粘贴");
            console.info('Action:', e.action);
            console.info('Text:', e.text);
            console.info('Trigger:', e.trigger);
        });

        clipboard.on('error', function (e) {
            alert("复制失败");
            console.info('Action:', e.action);
            console.info('Text:', e.text);
            console.info('Trigger:', e.trigger);
        });
    </script>
</body>
</html>